import request from '@/utils/request'

export function executeCommand(data) {
  return request({
    url: '/api/ssh/execute',
    method: 'post',
    data: data
  })
}


export function getLogsList(fileName) {
  return request({
    url: `/api/logs/packet-capture/${encodeURIComponent(fileName)}`,
    method: 'get',
  })
}


export function getLogsName() {
  return request({
    url: '/api/logs/files',
    method: 'get',
  })
}